package org.csu.mypetstore.api.service;

import org.csu.mypetstore.api.common.CommonResponse;
import org.csu.mypetstore.api.entity.Account;
import org.csu.mypetstore.api.vo.AccountVO;
import org.springframework.beans.factory.annotation.Autowired;

import javax.xml.bind.DatatypeConverter;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.List;

public interface AccountService {

    String getEncryptedPassword(String salt, String password) throws NoSuchAlgorithmException;

    CommonResponse<List<AccountVO>> getAllAccountList();

    CommonResponse<Account> getAccount(String username);

    CommonResponse<AccountVO> getAccount(String username, String password) throws NoSuchAlgorithmException;

    void insertAccount(Account account);

    void removeAccount(Account account);

    void updateAccount(Account account);

}
